<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core" >

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>  
	<link rel="stylesheet" type="text/css" media="screen" href="resources/style.css" />
</h:head>

<h:body>

<p:layout fullPage="true"  >  
  
	<p:layoutUnit position="north" size="70" >
		<ui:include src="cabecalho.xhtml" />
	</p:layoutUnit>  

	<p:layoutUnit position="center"  >
		<h:form enctype="multipart/form-data" >
		      <p:fileUpload fileUploadListener="#{uploadDocumentoMB.uploadConcluido}"
		   			id="fileUpload"
		            mode="advanced"  
		            update="messages"  
		            multiple="false"
		            showButtons="false"
		            oncomplete="$(window.location).attr('href','home.xhtml')"
		            auto="false"  
		            label="Adicionar Comprovante"
		            sizeLimit="2097152">
			</p:fileUpload>				           
		           
			<p:messages id="messages" />
		</h:form>
	</p:layoutUnit>
	
    <p:layoutUnit position="south" size="43">
		<ui:include src="rodape.xhtml" />
    </p:layoutUnit>  
  
</p:layout>	
	
</h:body>
</html>